const app = getApp();

Page({
  data: {
    recommend: true
  },
  onLoad: function (options) {

  },

  onReady: function () {
    app.sendAppLogs('app', 3); // 日志
  },

  switchChange: function(e){

  },

  onLogout: function (){
    app.logout();
    return app.Tips({title: `退出成功`, icon: "success"}, {tab: 1, url:'/pages/index/index'});
  },

  toAgreement: function (){
    app.goNewsPage(2);
  },

  toUserAgreement: function (){
    app.goNewsPage(1);
  },
})